package spring.JUNIT.beanLife;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public class beanLifeCycle implements InitializingBean, DisposableBean {

	public void start() {
		System.out.println("bean start");
	}

	public void stop() {
		System.out.println("bean stop");
	}

	@Override
	public void destroy() throws Exception {
		System.out.println("bean stop1");

	}

	@Override
	public void afterPropertiesSet() throws Exception {
		System.out.println("bean start1");

	}

	public void defauInit() {
		System.out.println("bean start2");
	}

	public void defauDes() {
		System.out.println("bean stop2");
	}
}
